/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package zombiedefense.ui;

import java.awt.Graphics2D;
import java.awt.event.ActionListener;
import javax.swing.JPanel;

/**
 * This class defines an framework for
 * in-game HUDs that display information
 * and may handle events.
 * @author &{user}
 */
public abstract class Overlay implements ActionListener{
    
    protected JPanel gamePanel;
    
    public Overlay(JPanel gamePanel){
	this.gamePanel = gamePanel;
    }
    
    //handle events here
    public abstract void update(long elapsedTime);
    
    //draw stats, etc. here
    public abstract void draw(Graphics2D g);
    
}
